package com.uatair;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 启动程序
 * 
 * @author uatair
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class UatairApplication
{
    public static void main(String[] args)
    {
        System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(UatairApplication.class, args);
        /*ConfigurableApplicationContext ctx = SpringApplication.run(UatairApplication.class, args);
        System.out.println("===== 生效的Kafka配置 =====");
        System.out.println("Bootstrap: " + ctx.getEnvironment().getProperty("spring.kafka.servers"));
        System.out.println("Username: " + ctx.getEnvironment().getProperty("spring.kafka.username"));*/
        System.out.println("(♥◠‿◠)ﾉﾞ  联合飞机启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " .-------.       ____     __        \n" +
                " |  _ _   \\      \\   \\   /  /    \n" +
                " | ( ' )  |       \\  _. /  '       \n" +
                " |(_ o _) /        _( )_ .'         \n" +
                " | (_,_).' __  ___(_ o _)'          \n" +
                " |  |\\ \\  |  ||   |(_,_)'         \n" +
                " |  | \\ `'   /|   `-'  /           \n" +
                " |  |  \\    /  \\      /           \n" +
                " ''-'   `'-'    `-..-'              ");
    }
}
